package com.zpark.sports.utils;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;


@Data
@NoArgsConstructor
@AllArgsConstructor
@Slf4j
public class JsonResult<T> {

    @JsonInclude(value = Include.ALWAYS)
    private Integer code;// 状态码
    @JsonInclude(value = Include.NON_NULL)
    private String message;// 状态信息
    @JsonInclude(value = Include.ALWAYS)
    private T data;// 响应数据

}
